package com.vote.services;

import java.io.Serializable;

public interface CacheService {
	public static final long second = 1000;
	public static final long minute = 1000*60;
	public static final long hour = 1000*60*60;
	public static final long day = 1000*60*60*24;
	public static final long defaultTimeOut = 1000*60*5;
	
	
	public void set(String key, Serializable value);
	
	public void set(String key, Serializable value, long time);
	
	public Object get(String key);
	
	public void remove(String key);
	
	public boolean exist(String key);
}
